// Written by Sam Tarin, Andi Cescolini, and Kevin Sonnen
// gameServer.h
//

#include <iostream>
#include "gameServer.h"

using boost::asio::ip::tcp;

typedef boost::shared_ptr<networkO::game_server> game_server_ptr;
typedef std::list<game_server_ptr> game_server_list;

int main() {
try {
	boost::asio::io_service io_service;
	game_server_list servers;
	using namespace std;
	tcp::endpoint endpoint(tcp::v4(), 13000);	// Hardcoding port 13000 (use above 1024 so root not needed)
	game_server_ptr server(new networkO::game_server(io_service, endpoint));

	io_service.run();
}
	catch (std::exception& e) {
		std::cerr << "Exception: " << e.what() << "\n";
}
	return 0;
}
